package edu.clarkson.ee368.spring2012.coreservices;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="application")
public class HostedApplicationImpl implements HostedApplication, Serializable  {
	
	private static final long serialVersionUID = 1L;

	@Id
	private String applicationSecret;
	
	private String company;
	private String name;
	private int version;
	private String c2dmAuthToken;
	
	
	@Override
	public String getApplicationSecret() {
		return this.applicationSecret;
	}

	@Override
	public void setAplicationSecret(String secret) {
		this.applicationSecret = secret;
	}

	@Override
	public String getCompany() {
		return this.company;
	}

	@Override
	public void setCompany(String company) {
		this.company = company;
	}

	@Override
	public String getApplicationName() {
		return this.name;
	}

	@Override
	public void setApplicationName(String applicationName) {
		this.name = applicationName;
	}

	@Override
	public int getVersion() {
		return this.version;
	}

	@Override
	public void setVersion(int version) {
		this.version = version;
	}

	@Override
	public String getC2DMAuthenticationToken() {
		return this.c2dmAuthToken;
	}

	@Override
	public void setC2DMAuthenticationToken(String authToken) {
		this.c2dmAuthToken = authToken;
	}

}
